package org.blogwu.learn.designpattern.chapter14.v4;

import java.math.BigDecimal;

public class Main {
    public static void main(String[] args) {
        Course courseType = new CourseType("慕课网视频");

        {
            Course javaCourseType = new CourseType("Java视频");
            courseType.addCourse(javaCourseType);

            //具体课程类容

            Course deb = new SpecificCourse("设计模式");
            deb.setPrice(new BigDecimal(298));
            javaCourseType.addCourse(deb);

            //Spring Cloud微服务实战
            Course deb1 = new SpecificCourse("Spring Cloud微服务实战");
            deb.setPrice(new BigDecimal(366));
            javaCourseType.addCourse(deb1);

            //Spring Cloud微服务实战
            Course deb2 = new SpecificCourse("Spring Boot 2.0深度实践之核心技术篇");
            deb.setPrice(new BigDecimal(398));
            javaCourseType.addCourse(deb2);

        }

        {
            Course javaCourseType = new CourseType("GO视频");
            courseType.addCourse(javaCourseType);

            //具体课程类容

            Course deb = new SpecificCourse("Go语言开发分布式任务调度");
            deb.setPrice(new BigDecimal(299));
            javaCourseType.addCourse(deb);

            //Spring Cloud微服务实战
            Course deb1 = new SpecificCourse("Google资深工程师深度讲解Go语言");
            deb.setPrice(new BigDecimal(399));
            javaCourseType.addCourse(deb1);

            //Spring Cloud微服务实战
            Course deb2 = new SpecificCourse("Go语言实战流媒体视频网站");
            deb.setPrice(new BigDecimal(266));
            javaCourseType.addCourse(deb2);

        }
        courseType.showCourseInfo();

    }
}
